package com.bugpool.leilema.tc.bean.interfaces;

import com.bugpool.leilema.tc.bean.entity.SysUser;
import com.bugpool.leilema.tc.bean.res.UserRes;
import com.bugpool.leilema.tc.bean.vo.SysUserVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;
import java.util.Set;

/**
 * @Author wh
 * @Description
 * @Date 2023/3/6 9:46
 * @Version 1.0
 **/
@Mapper
public interface UserConvert {

    UserConvert INSTANCE= Mappers.getMapper(UserConvert.class);

    UserRes convertToRes(SysUserVo sysUser);

    SysUser convertObjectToSysUser(Object o);

    List<String> setToList(Set<String> set);

    SysUserVo sysUserToUserVo(SysUser sysUser);


}
